Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0, require("../@babel/runtime/helpers/Arrayincludes");

var e = {
    iphone: 64,
    iPhoneX: 88,
    android: 68,
    samsung: 72
}, t = Behavior({
    behaviors: [],
    properties: {},
    data: {
        authShow: !1
    },
    attached: function() {},
    methods: {
        getNavTop: function(t) {
            var n = wx.getMenuButtonBoundingClientRect ? wx.getMenuButtonBoundingClientRect() : null;
            if (console.log(n), !n) {
                var o = wx.getSystemInfoSync(), r = o.statusBarHeight, i = o.model.toLowerCase().trim(), a = e.android;
                return "iphone x" === i && (a = e.iPhoneX), [ "iphone", "samsung", "android" ].includes(i) && (a = e[i]), 
                a - r + 4 + 16 - t / 2;
            }
            return n.height / 2 + n.top - t / 2;
        }
    }
});

exports.default = t;